/* -----------------------------------------------------------------------
 * Andrew Goetz
 * CS362
 * unitvalue2.c
 * Tests the isGameOver() function
 * -----------------------------------------------------------------------
 */

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"
#include <stdlib.h>
#include <math.h>

// Number of times the test runs variable
#define TRIALS 250

int main(){
    struct gameState *state = malloc(sizeof(struct gameState));
    int i; 
	int j;
	int isOver;
	
    for (j = 0; j < TRIALS; j++) {
        for (i = 0; i < sizeof(struct gameState); i++) {
            ((char*)state)[i] = floor(Random() * 256);
        }
        state->supplyCount[province] = floor(Random() * 12);
        isOver = isGameOver(state);
    }
    printf("Test finished");
    return 0;
}